package inits

import (
	"fmt"
	"github.com/go-redis/redis/v8"
	"zg3/day13/global"
)

func InitRedis() {
	global.Rdb = redis.NewClient(&redis.Options{
		Addr:     "14.103.235.216:6379",
		Password: "973c951ff2facf82bf69657a61c35299", // no password set
		DB:       0,                                  // use default DB
	})
	fmt.Println("redis init success")
}
